import request from "../utils/request";
// 根据id大神风采
export function getById(id) {
  return request.get(`/godpresence/${id}`);
}
// 获取大神风采
export function getList(params) {
  return request.get("/godpresence", { params: params });
}
// 修改状态
export function vimOrder(id, delivery) {
         return request.post(`/godpresence/IsActived/${id}`, delivery);
       }
// 添加大神风采
export function addOrder(data) {
  return request.post("/godpresence", data,{"Content-Type": " multipart/form-data"});
}

// 修改大神风采
export function modOrder(id, data) {
         return request.put(`/godpresence/${id}`, data, {
           "Content-Type": " multipart/form-data",
         });
       }
//删除大神风采
export function deleteOrder(id, data) {
         return request.delete(`/godpresence/${id}`, data);
       }
